class CreateParts < ActiveRecord::Migration
  def change
    create_table :parts do |t|
      t.integer :part_style_id
      t.string :name
      t.string :code
      t.float :purchase_price
      t.float :sales_price
      t.string :unit
      t.integer :warehouse_slot_id
      t.string :car_mo
      t.string :brand
      t.string :origin
      t.text :note

      t.timestamps null: false
    end
  end
end
